<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

<p:dialog header="发票附件上传" widgetVar="billAnnex" modal="true" closable="true" resizable="true" width="1200" height="600">
    <style>
        .ui-fileupload-files{
            display: inline-block;
        }
    </style>
    <p:outputPanel id="bill-annex-upload-dialog">
        <p:fileUpload fileUploadListener="#{settlementIncomeListBean.handleAnnexUpload}" mode="advanced"
                      dragDropSupport="false"
                      multiple="true"
                      invalidFileMessage="不支持上传文件类型"
                      invalidSizeMessage="文件过大"
                      sizeLimit="#{constants:get('UPLOAD_FILE_SIZE')}" fileLimit="10"
                      allowTypes="/(\.|\/)(#{constants:get('UPLOAD_DOCUMENT_FILE_SUFFIX')})$/"
                      cancelLabel="取消" uploadLabel="上传" label="选择"/>
    </p:outputPanel>
</p:dialog>

</html>
